package com.bto.solar.work.constant;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/14 14:03
 */
public enum BizTaskStateEnum {
    WAITING_FILLED("待填写" , 0),
    FILLED_OK("填写完毕" , 0),
    WAITING_SIGN("待签约" , 0),
    WAITING_SIGN_RE("待重新签约" , 0),
    SIGNED("已签约" , 0),
    INCEPT("起租" , 0),
    INCEPT_WAITING_PUSH_GSDHT("待起租推送资方" , 0),
    WAITING_APPOINT("待指派" , 0),
    WAITING_APPROVAL_INNER("待内部审核" , 1),

    WAITING_APPROVAL_BTO("待总部审核" , 1),

    WAITING_APPROVAL_LEASE("待资方审核" ,1 ),

    APPROVAL_PASS("审核通过" , 3),
    APPROVAL_REJECT("审核拒绝" , 2),

    APPROVAL_PASS_BTO("总部审核通过" , 3),
    APPROVAL_REJECT_BTO("总部审核拒绝" , 2),

    APPROVAL_PASS_LEASE("资方审核通过" , 3),
    APPROVAL_CLOSE_LEASE("资方撤单" , 0),
    APPROVAL_REJECT_LEASE("资方审核拒绝" , 2),

    TERMINATE("终止" , 18),
    LOCK("锁定冻结" , 19),
    UN_LOCK("解锁" , 0),

    FINISHED("完成" , 20);


    private String stageName;

    private Integer sort;

    BizTaskStateEnum(String stageName ,Integer sort){
        this.stageName = stageName;
        this.sort = sort;
    }


    public String getStateId() {
        return this.name();
    }
    public Integer getSort() {
        return sort;
    }

    public String getStageName() {
        return stageName;
    }

}
